﻿@model List<Common.Contract.Customer.Record.CountAlertCustomerRecord>
<a href="javascript:;" class="dropdown-toggle info-number" data-toggle="dropdown" aria-expanded="false">
    <i class="fa fa-bell-o"></i>
    <span class="badge bg-red">@Model.Count(x => x.CountCust != 0)</span>
</a>
<ul id="menu1" class="dropdown-menu list-unstyled msg_list" role="menu">
    <li>
        @foreach (var item in Model)
        {
            if (item.CountCust > 0)
            {
                <a href="@item.AlertUrl">
                    <span class="image">
                        <i class="@item.AlertCss"></i>
                    </span>
                    <span>
                        <span>@item.AlertName</span>
                        <span class="time">@item.CountCust</span>
                    </span>
                    <span class="message">
                        @item.AlertDescription
                    </span>
                </a>
            }
        }
    </li>
</ul>